Also, cap it all off. Finish or complete something, as in To cap it all off they served three kinds of dessert.
.
Surpass or outdo something, as in This last story of Henry's caps them all. Both usages employ cap in the sense of “topping” something. [ First half of 1800s ]